package com.mengxuegu.security.mobile;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 发送短信验证码,
 *
 * @author william
 * @create 2021-07-05 20:18
 **/

public class SmsCodeSender implements SmsSend {
    Logger logger = LoggerFactory.getLogger(SmsCodeSender.class);

    @Override
    public boolean sendSms(String mobile, String content) {
        String sendContent = String.format("验证码:%s，您正进行支付宝的身份验证，打死不告诉别人！快速查看", content);
        logger.info("向手机号:" + mobile + " 发送的短信为:" + sendContent);
        return true;
    }
}
